Develop and Download Open Source Software

Browse CVS Repository

Contents of /satellite/neuromanager/neuromanager/NeuroManagerDoc.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (show annotations) (download) (as text)
Thu Mar 23 19:14:52 2006 UTC (18 years ago) by orrisroot
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -1 lines
File MIME type: text/x-chdr
added dynamic update code of main menu.

1 /* --------------------------------------------------------------------- */
2 /* NeuroManager - A spike train analysis tool */
3 /* Copyright (c) 2005-2006 RIKEN, Japan. All rights reserved. */
4 /* http://satellite.sourceforge.jp/ */
5 /* --------------------------------------------------------------------- */
6 /* This program is free software; you can redistribute it and/or */
7 /* modify it under the terms of the GNU General Public License */
8 /* as published by the Free Software Foundation; either version 2 */
9 /* of the License, or (at your option) any later version. */
10 /* */
11 /* This program is distributed in the hope that it will be useful, */
12 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
13 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
14 /* GNU General Public License for more details. */
15 /* */
16 /* You should have received a copy of the GNU General Public License */
17 /* along with this program; see the file COPYING.txt. If not, write */
18 /* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth */
19 /* Floor, Boston, MA 02110-1301, USA. */
20 /* --------------------------------------------------------------------- */
21
22 /* $Id: NeuroManagerDoc.h,v 1.3 2006/03/20 07:24:14 orrisroot Exp $ */
23
24 // NeuroManagerDoc.h : interface of the CNeuroManagerDoc class
25 //
26
27 // data class
28 #include "stdafx.h"
29
30 #pragma once
31
32 class CNeuroManagerDoc : public CDocument
33 {
34 protected:
35 // create from serialization only
36 CNeuroManagerDoc();
37 DECLARE_DYNCREATE( CNeuroManagerDoc )
38
39 // Attributes
40 public:
41
42 // Operations
43 public:
44
45 // Overrides
46 public:
47 virtual BOOL OnNewDocument();
48 virtual void Serialize( CArchive& ar );
49
50 // Implementation
51 public:
52 virtual ~CNeuroManagerDoc();
53 #ifdef _DEBUG
54
55 virtual void AssertValid() const;
56 virtual void Dump( CDumpContext& dc ) const;
57 #endif
58
59 protected:
60
61 // Generated message map functions
62 protected:
63 DECLARE_MESSAGE_MAP()
64 private:
65 // Data file name
66 CString m_strFileName;
67 CMultiChannelData *m_pData;
68 // multi channel data manager
69 CMCDataManager m_MCDataManager;
70 CMultiChannelData * CreateDataInstance();
71 public:
72 // get data name
73 CString getFileName() const;
74 virtual BOOL OnOpenDocument( LPCTSTR lpszPathName );
75 virtual BOOL OnSaveDocument( LPCTSTR lpszPathName );
76 BOOL IsMapped() const;
77 void AttachData( UINT ch ) const;
78 void DetachData() const;
79 double GetData( QWORD pos ) const;
80 double GetYAxisRange( UINT ch ) const;
81 double GetSamplingRate() const;
82 double GetPosTime( QWORD pos ) const;
83 UINT GetChannelNumber() const;
84 QWORD GetDataLength() const;
85 UINT GetBitLength() const;
86 BOOL GetByteSwap() const;
87 // for plugin
88 BOOL SetPlguinMenu( CMenu *ParentMenu );
89 BOOL GetPluginTitle( size_t n, char * buf, size_t buflen );
90 };

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26