open_toontown_panda3d/direct/src/dcparser/dcField.h

52 lines
1.4 KiB
C++

// Filename: dcField.h
// Created by: drose (11Oct00)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
//
// All use of this software is subject to the terms of the Panda 3d
// Software license. You should have received a copy of this license
// along with this source code; you will also find a current copy of
// the license at http://www.panda3d.org/license.txt .
//
// To contact the maintainers of this program write to
// panda3d@yahoogroups.com .
//
////////////////////////////////////////////////////////////////////
#ifndef DCFIELD_H
#define DCFIELD_H
#include "dcbase.h"
class DCAtomicField;
class DCMolecularField;
class HashGenerator;
////////////////////////////////////////////////////////////////////
// Class : DCField
// Description : A single field of a Distributed Class, either atomic
// or molecular.
////////////////////////////////////////////////////////////////////
class EXPCL_DIRECT DCField {
PUBLISHED:
int get_number() const;
const string &get_name() const;
virtual DCAtomicField *as_atomic_field();
virtual DCMolecularField *as_molecular_field();
public:
virtual ~DCField();
virtual void write(ostream &out, int indent_level = 0) const=0;
virtual void generate_hash(HashGenerator &hash) const;
public:
int _number;
string _name;
};
#endif